package com.cjh.springcloud;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

/**
 * @Author cjh
 * @Date 2020/12/3 17:32
 * @Version 1.0
 */
@EnableEurekaClient// 服务启动后自动注册到eureka
@SpringBootApplication
@EnableDiscoveryClient// 服务发现
@MapperScan("com.cjh.springcloud.dao")
public class EmpProvider_8001 {
    public static void main(String[] args) {
        SpringApplication.run(EmpProvider_8001.class,args);
    }

}
